import { getLockers } from '../services/api'; // 假设你有一个 API 函数来获取快递柜数据

const state = {
    lockers: [], // 存储快递柜数据
};

const mutations = {
    SET_LOCKERS(state, lockers) {
        state.lockers = lockers;
    },
};

const actions = {
    fetchLockers({ commit }) {
        // 这里添加获取快递柜信息的逻辑
    },
};

const getters = {
    lockers: (state) => state.lockers,
};

export default {
    state,
    mutations,
    actions,
    getters,
}; 